package vista;

import java.awt.Color;
import java.awt.FlowLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

import controlador.CreadorDeFuncion;

public class CuadroDeTexto extends JPanel {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public CuadroDeTexto(CreadorDeFuncion creador){
		JTextField box= new JTextField("Ingrese aqui la funcion",50);
		box.addActionListener(creador);
		JLabel label=new JLabel("F(x)=");
		label.setForeground(Color.WHITE);
		this.setLayout(new FlowLayout());
		this.add(label);
		this.add(box);
		this.setBackground(new Color(19000));
	}
}
